package entity

import "time"

type PrizeEntity struct {
	Id         int64     `gorm:"primaryKey;column:id"`
	CreatedAt  time.Time `gorm:"column:created_at"`
	UpdatedAt  time.Time `gorm:"column:updated_at"`
	Status     int       `gorm:"column:status"`
	SettleTime time.Time `gorm:"column:settle_time"`
	RoomId     int64     `gorm:"column:room_id"`
	RoomLevel  int       `gorm:"column:room_level"`
	UserId     int64     `gorm:"column:user_id"`
	IsRobot    bool      `gorm:"column:is_robot"`
	NickName   string    `gorm:"column:nick_name"`
	PrizeCoins int64     `gorm:"column:prize_coins"`
	GameType   int       `gorm:"column:game_type"`
}

func (s *PrizeEntity) TableName() string {
	return "t_game_prize"
}
